package com.yunsc.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunsc.order.entity.YunscOrderGoodsEntity;
import com.yunsc.order.vo.GoodsRankingVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 订单商品记录表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:50
 */
@Mapper
public interface YunscOrderGoodsDao extends BaseMapper<YunscOrderGoodsEntity> {

    /**
     * 查询商品排行榜
     * @param storeId 店铺ID
     * @return 商品排行榜
     */
    List<GoodsRankingVO> queryGoodsRanking(Integer storeId);
}
